username='daijw'
password='111'
count=0
while count < 3:
    name=input('Input your name:')
    passwd=input('Input your password:')
    count+=1
    if name == username and passwd == password:
        print("Login success~")
        break
    else:
        print("nane or passwd error")
if count==3:
    print("Wrong three times")


======== # 这里有点问题，可以用# 进行注释
username='daijw'
password='111'
count=0
while count < 3:
    uname=input('Input your uname:')
    if uname == username:
        passwd=input('Input your passwd:') # 用户名和密码验证一般都是同时输入
        if passwd == password:
            print("Login Success!!")
            break
        else:
            print("Password Error")
            count+=1
    else:
        print("Username  Error!")
        count+=1
if count==3: # 这个判断可以放在while循环里面
    print("Wrong three times")
